home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 0622 / PCZONE0622.iso / Patches / Op Flash / OFPPatch.exe / OFPPatch_Upgrade_1_30.exe / 0 / RCDATA / ADD\TEMPLATES\1-10_T_TEAMFLAGFIGHT.ABEL\TIMING.SQS < prev    next >
Text File  |  2001-11-09  |  511b  |  29 lines

  1. ; Script for timing in the MP mission
  2. ; There are several triggers in the mission - condition ShowMe==xxxx (xxxx - time) with Hint "xxx minutes remaining"
  3.  
  4. ? Param1 == 10000 : Exit
  5.  
  6. ~1
  7.  
  8. _times = [3600, 1800, 1200, 600, 300, 120];
  9. _i = -1;
  10.  
  11.  
  12. #Again
  13. _i=_i+1;
  14.  
  15. ? _i == (count _times) : Exit
  16. _j = _times select _i;
  17.  
  18. ? Param1 < _j : goto "Again"
  19.  
  20.  
  21. #Loop
  22. @ Param1-time <= _j;
  23. ShowMe=_j; PublicVariable "ShowMe";
  24.  
  25. ? _i == (count _times) - 1 : Exit
  26. _i=_i+1
  27. _j = _times select _i
  28. goto "Loop"
  29.